package com.ga.wact.entity;

public class User {
    /**
     * id:用户id
     * password:用户密码
     * mail:用户邮箱
     * lastRegisterIp:用户注最后注册的Ip地址
     * Status:账号的状态（0：用户正在注册，1，账号正常，2，用户锁定）
     */
    private int id;
    private String userName;
    private String password;
    private String mail;
    private String lastRegisterIp;
    private int status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getLastRegisterIp() {
        return lastRegisterIp;
    }

    public void setLastRegisterIp(String lastRegisterIp) {
        this.lastRegisterIp = lastRegisterIp;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        status = status;
    }

    public User(int id, String userName, String password, String mail, String lastRegisterIp, int status) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.mail = mail;
        this.lastRegisterIp = lastRegisterIp;
        this.status = status;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", mail='" + mail + '\'' +
                ", lastRegisterIp='" + lastRegisterIp + '\'' +
                ", status=" + status +
                '}';
    }
}
